#include<iostream>
using namespace std;


int main()
{
	int a = 0;
	cin >> a;
	if (a % 2 == 1)
	{
		cout << -1 << endl;
		return 0;
	}

	for (int i=31;i>=1;i--)
	{
		if (((a >> i) & 1) == 1) cout << (1 << i) << " ";
	}
	return 0;
}